.class public Lcom/example/m6shop/ShopEdit;
.super Landroid/app/Activity;
.source "ShopEdit.java"


# instance fields
.field btn2:Landroid/widget/Button;

.field btn3:Landroid/widget/Button;

.field btn4:Landroid/widget/Button;

.field button1:Landroid/widget/Button;

.field dataarray:Lorg/json/JSONObject;

.field public h:Landroid/os/Handler;

.field private ls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/BilldetBean;",
            ">;"
        }
    .end annotation
.end field

.field m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;

.field name:Ljava/lang/String;

.field orderCc:Ljava/lang/String;

.field typename:Ljava/lang/String;

.field typenamevalue:Ljava/lang/String;

.field width:I


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 39
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 40
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->m:Lmyapp/MyApp;

    .line 41
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    .line 42
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->name:Ljava/lang/String;

    .line 43
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    .line 44
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->h:Landroid/os/Handler;

    .line 46
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->dataarray:Lorg/json/JSONObject;

    .line 47
    const/4 v0, 0x0

    iput v0, p0, Lcom/example/m6shop/ShopEdit;->width:I

    .line 48
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    .line 49
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->btn2:Landroid/widget/Button;

    .line 50
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->btn3:Landroid/widget/Button;

    .line 51
    iput-object v1, p0, Lcom/example/m6shop/ShopEdit;->btn4:Landroid/widget/Button;

    .line 54
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/ShopEdit;->orderCc:Ljava/lang/String;

    .line 39
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/ShopEdit;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lcom/example/m6shop/ShopEdit;->mcontext:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public getSource()Z
    .locals 1

    .prologue
    .line 234
    new-instance v0, Lcom/example/m6shop/ShopEdit$5;

    invoke-direct {v0, p0}, Lcom/example/m6shop/ShopEdit$5;-><init>(Lcom/example/m6shop/ShopEdit;)V

    .line 276
    invoke-virtual {v0}, Lcom/example/m6shop/ShopEdit$5;->start()V

    .line 277
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 14
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 60
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 61
    const v12, 0x7f030063

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->setContentView(I)V

    .line 62
    invoke-virtual {p0}, Lcom/example/m6shop/ShopEdit;->getIntent()Landroid/content/Intent;

    move-result-object v4

    .line 63
    .local v4, "intent":Landroid/content/Intent;
    const-string v12, "name"

    invoke-virtual {v4, v12}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, p0, Lcom/example/m6shop/ShopEdit;->name:Ljava/lang/String;

    .line 64
    const-string v12, "typename"

    invoke-virtual {v4, v12}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    .line 65
    const-string v12, "typenamevalue"

    invoke-virtual {v4, v12}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    .line 66
    invoke-virtual {p0}, Lcom/example/m6shop/ShopEdit;->getApplicationContext()Landroid/content/Context;

    move-result-object v12

    check-cast v12, Lmyapp/MyApp;

    iput-object v12, p0, Lcom/example/m6shop/ShopEdit;->m:Lmyapp/MyApp;

    .line 67
    iput-object p0, p0, Lcom/example/m6shop/ShopEdit;->mcontext:Landroid/content/Context;

    .line 68
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 69
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 70
    const v12, 0x7f070070

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/TextView;

    .line 71
    .local v11, "title_bar_name":Landroid/widget/TextView;
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->name:Ljava/lang/String;

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 72
    const-string v12, "userInfo"

    .line 73
    const/4 v13, 0x0

    .line 72
    invoke-virtual {p0, v12, v13}, Lcom/example/m6shop/ShopEdit;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v6

    .line 74
    .local v6, "preferences":Landroid/content/SharedPreferences;
    const-string v12, "uid"

    const-string v13, ""

    invoke-interface {v6, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 75
    .local v0, "account":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v12, ""

    invoke-virtual {v0, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 76
    :cond_0
    new-instance v5, Landroid/content/Intent;

    invoke-direct {v5}, Landroid/content/Intent;-><init>()V

    .line 77
    .local v5, "intents":Landroid/content/Intent;
    const-class v12, Lcom/example/m6shop/LoginActivity;

    invoke-virtual {v5, p0, v12}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 78
    invoke-virtual {p0, v5}, Lcom/example/m6shop/ShopEdit;->startActivity(Landroid/content/Intent;)V

    .line 79
    invoke-virtual {p0}, Lcom/example/m6shop/ShopEdit;->finish()V

    .line 231
    .end local v5    # "intents":Landroid/content/Intent;
    :goto_0
    return-void

    .line 82
    :cond_1
    const v12, 0x7f0701dd

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/ImageView;

    .line 83
    .local v10, "title_bar_menu_btn":Landroid/widget/ImageView;
    new-instance v12, Lcom/example/m6shop/ShopEdit$1;

    invoke-direct {v12, p0}, Lcom/example/m6shop/ShopEdit$1;-><init>(Lcom/example/m6shop/ShopEdit;)V

    invoke-virtual {v10, v12}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 97
    const v12, 0x7f07028b

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/RadioGroup;

    .line 98
    .local v3, "group":Landroid/widget/RadioGroup;
    const v12, 0x7f07028e

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    .line 99
    .local v2, "editText1":Landroid/widget/EditText;
    const v12, 0x7f07000a

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v12

    check-cast v12, Landroid/widget/Button;

    iput-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    .line 100
    const v12, 0x7f070002

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 102
    .local v9, "textView1":Landroid/widget/TextView;
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    const-string v13, "opentype"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_4

    .line 103
    const/4 v12, 0x0

    invoke-virtual {v3, v12}, Landroid/widget/RadioGroup;->setVisibility(I)V

    .line 104
    const v12, 0x7f07028c

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/RadioButton;

    .line 105
    .local v7, "radio0":Landroid/widget/RadioButton;
    const v12, 0x7f07028d

    invoke-virtual {p0, v12}, Lcom/example/m6shop/ShopEdit;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/RadioButton;

    .line 106
    .local v8, "radio1":Landroid/widget/RadioButton;
    sget-object v12, Ljava/lang/System;->out:Ljava/io/PrintStream;

    iget-object v13, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    invoke-virtual {v12, v13}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 107
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    const-string v13, "1"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_3

    .line 108
    const/4 v12, 0x1

    invoke-virtual {v7, v12}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 142
    .end local v7    # "radio0":Landroid/widget/RadioButton;
    .end local v8    # "radio1":Landroid/widget/RadioButton;
    :cond_2
    :goto_1
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    new-instance v13, Lcom/example/m6shop/ShopEdit$2;

    invoke-direct {v13, p0}, Lcom/example/m6shop/ShopEdit$2;-><init>(Lcom/example/m6shop/ShopEdit;)V

    invoke-virtual {v12, v13}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 161
    new-instance v12, Lcom/example/m6shop/ShopEdit$3;

    invoke-direct {v12, p0}, Lcom/example/m6shop/ShopEdit$3;-><init>(Lcom/example/m6shop/ShopEdit;)V

    invoke-virtual {v3, v12}, Landroid/widget/RadioGroup;->setOnCheckedChangeListener(Landroid/widget/RadioGroup$OnCheckedChangeListener;)V

    .line 189
    new-instance v12, Lcom/example/m6shop/ShopEdit$4;

    invoke-direct {v12, p0}, Lcom/example/m6shop/ShopEdit$4;-><init>(Lcom/example/m6shop/ShopEdit;)V

    iput-object v12, p0, Lcom/example/m6shop/ShopEdit;->h:Landroid/os/Handler;

    goto/16 :goto_0

    .line 110
    .restart local v7    # "radio0":Landroid/widget/RadioButton;
    .restart local v8    # "radio1":Landroid/widget/RadioButton;
    :cond_3
    const/4 v12, 0x1

    invoke-virtual {v8, v12}, Landroid/widget/RadioButton;->setChecked(Z)V

    goto :goto_1

    .line 112
    .end local v7    # "radio0":Landroid/widget/RadioButton;
    .end local v8    # "radio1":Landroid/widget/RadioButton;
    :cond_4
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    const-string v13, "opentime"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_5

    .line 113
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 114
    const/4 v12, 0x0

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setVisibility(I)V

    .line 115
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_1

    .line 118
    :cond_5
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    const-string v13, "shopphone"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_6

    .line 119
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 120
    const/4 v12, 0x0

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setVisibility(I)V

    .line 121
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_1

    .line 124
    :cond_6
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    const-string v13, "shopaddress"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_7

    .line 125
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 126
    const/4 v12, 0x0

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setVisibility(I)V

    .line 127
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_1

    .line 130
    :cond_7
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    const-string v13, "notice_info"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_8

    .line 131
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 132
    const/4 v12, 0x0

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setVisibility(I)V

    .line 133
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Landroid/widget/Button;->setVisibility(I)V

    goto/16 :goto_1

    .line 136
    :cond_8
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typename:Ljava/lang/String;

    const-string v13, "intr_info"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_2

    .line 137
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->typenamevalue:Ljava/lang/String;

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 138
    const/4 v12, 0x0

    invoke-virtual {v2, v12}, Landroid/widget/EditText;->setVisibility(I)V

    .line 139
    iget-object v12, p0, Lcom/example/m6shop/ShopEdit;->button1:Landroid/widget/Button;

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Landroid/widget/Button;->setVisibility(I)V

    goto/16 :goto_1
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 280
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 281
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 282
    .local v0, "msg":Landroid/os/Message;
    const/16 v1, 0x10

    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 283
    sget-object v1, Lcom/example/m6shop/ShopInfoActivity;->h:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 284
    invoke-virtual {p0}, Lcom/example/m6shop/ShopEdit;->finish()V

    .line 287
    .end local v0    # "msg":Landroid/os/Message;
    :cond_0
    return v2
.end method
